<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$config.title}{if $smarty.get.act eq "pages" or $smarty.get.act eq "category"} &raquo; {$page_name}{/if}</title>
<meta name="description"  content="{$config.description}" />
<meta name="keywords"  content="{$config.keywords}" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.corners.js"></script>
<script type="text/javascript" src="js/jquery.highlight.js"></script>
<script type="text/javascript" src="js/thickbox.js"></script>
<script type="text/javascript" src="js/jquery.functions.js"></script>
<link rel="stylesheet" href="js/thickbox.css" type="text/css" media="screen" />

<script type="text/javascript">

{$javascript}

</script>
	<link type="text/css" href="js/smoothness/jquery-ui-1.8.9.custom.css" rel="stylesheet" />	
	<script type="text/javascript" src="js/jquery-ui-1.8.9.custom.min.js"></script>
	<script type="text/javascript" src="js/jquery.addons.js"></script>
<link href="{getPathName file='mobile.css'}" rel="stylesheet" type="text/css" />
</head>
<body>


<div id="wrapper" class="rounded">
<div id="header" >
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><img src="UserFiles/Image/product_photos/{$config.logo}" width="250"  /></td>
      <td><div > 
          <script type="text/javascript" src="ads.php?function=serve&id=top"></script>
          <div id="status"><img src="images/{$status}.gif" /></div>
        </div></td>
    </tr>
  </table>
</div>
<div id="pages"> {$menu}
  <div style="clear:both"></div>
</div>
<div id="content">

  <div id="right" class="rounded">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
        
        <div id="jumpnav">
        <div style="float:left;width:48%">
            <form action="index.php" method="get">
              <input type="hidden" name="act" value="category" />
              <input type="text" name="search" />
              <input type="submit" value="Search!" />
            </form>
          </div>
          {if $rest_count gt 1}
          <div style="text-align:right;float:left;width:48%">
            <form name="jump1">
              Choose a restaurant:
              <select name="myjumpbox"
 OnChange="location.href=jump1.myjumpbox.options[selectedIndex].value" >
                
                
{foreach from=$sites item=sites}

                
                <option value="?site={$sites.id}"  name="jumpurl2" {if $grid eq $sites.id} selected="selected" {/if}>{$sites.sitename}</option>
                
                
{/foreach}

              
              </select>
            </form>
          </div>
            {/if}
             <div style="clear:both"></div>
          </div>
       
        
          
          {if $smarty.get.act ne ""}
          
          {include file="modules/$act.tpl"'}
          
          {else}
          
          {$content}
           <h1 style="margin-top:10px;margin-bottom:10px">Latest News</h1>
           {foreach from=$latest_news item=latest_news}
           
           <div class="news">
           <h3><a href="index.php?act=news&id={$latest_news.id}">{$latest_news.title|stripslashes}</a></h4>
           <p><i>{$latest_news.date|date_format}</i> - {$latest_news.content|strip_tags|stripslashes|truncate:150} <a href="index.php?act=news&id={$latest_news.id}">Read More</a></p>
          
           </div>
           
           {/foreach}
           <div style="text-align:right"><a href="index.php?act=news">View all news</a></div>
          
          <h1 style="margin-top:10px;margin-bottom:10px">Newest Items</h1>
          <div id="menu"> {foreach from=$topfour item=items}
            <div  class="item-block">
              <div class="image"> <a href="index.php?act=viewprod&pid={$items.id}&price={$price|trim}{if $config.popup eq 1}&popup=1&amp;height=600&amp;width=700{/if}" {if $config.popup eq 1}class="thickbox"{/if} title="{$items.name}"> {if  $items.image == ""} <img src="images/no_image.gif" style="border:none"> {else} <img src="UserFiles/Image/product_photos/{$items.image}" style="border:none"> {/if} </a> </div>
              <div class="desc"> <a href="index.php?act=viewprod&pid={$items.id}&price={$price|trim}{if $config.popup eq 1}&popup=1&amp;height=600&amp;width=700{/if}" {if $config.popup eq 1}class="thickbox"{/if} title="{$items.name}" > {$items.name}</a>
                <div> {foreach from=$items.prices item=price} <b> {if $config.enabled eq 0} <a href="index.php?act=viewprod&pid={$items.id}&price={$price|trim}{if $config.popup eq 1}&popup=1&amp;height=600&amp;width=700{/if}" {if $config.popup eq 1}class="thickbox"{/if} title="{$items.name}" style="margin-left:10px" >{$price|trim|price_format}</a> {else} <a href="javascript:alert('{$config.closed_message}')" title="{$items.name}"   style="margin-left:10px" >{$price|trim}</a> {/if} </b> {/foreach} </div>
              </div>
            </div>
            {/foreach}
            <div style="clear:both"></div>
          </div>
          {/if}</td>
      </tr>
    </table>
    <div style="clear:both"></div>
  </div>
  <div style="clear:both"></div>
</div>
<div class="popup"></div>
{include file="includes/footer.tpl"}
